from typing import Optional, List
from datetime import datetime
from pydantic import BaseModel

class KnowledgeBaseBase(BaseModel):
    name: str
    description: Optional[str] = None

class KnowledgeBaseCreate(KnowledgeBaseBase):
    dimensions: int
    enable_sparse:int
    pass

class KnowledgeBaseUpdate(KnowledgeBaseBase):
    id: int
    dimensions: int
    enable_sparse:int
    pass

class DocumentUpdate(BaseModel):
    id: int
    description: Optional[str]
    error_message: Optional[str]= None
    pass